package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.dto.font.PageBeanUid;
import com.jeff.tianti.cms.entity.Consult;
import com.jeff.tianti.cms.dao.ConsultDao;
import com.jeff.tianti.cms.dto.ConsultQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author liuyi
 * @desc ConsultService类 
 * @date 2019-06-28
 */
@Service
public class ConsultService extends CommonService< Consult,String >  {

    @Autowired
    private ConsultDao consultDao;

    @Autowired
    public void setConsultDao(ConsultDao consultDao){
      super.setCommonDao(consultDao);
    }

    public PageModel<Consult> queryConsultPage(ConsultQueryDTO consultQueryDTO){
           return this.consultDao.queryConsultPage(consultQueryDTO);
    }

    public List<Consult> queryConsultList(ConsultQueryDTO consultQueryDTO){
           return this.consultDao.queryConsultList(consultQueryDTO);
    }


    public PageModel<Consult> findByUid(PageBeanUid pageBean) {
        return consultDao.findByUid(pageBean);
    }
}